<%@ page pageEncoding="utf-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<title>修改菜品/套餐</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="/resources/js/commons.js"></script>
	<link rel="stylesheet" type="text/css" href="/resources/css/commons.css" />
</head>
<body>
	<h2>修改菜品/套餐</h2>
	<hr/>
	<form action="/sysFoodUpdate" method="POST">
		<!-- hidden隐藏域,在提交表单时连food.id一起提交 -->
		<input type="hidden" name="id" value="${ food.id }"/>
		<table border="1">
			<tr>
				<td width="30%">类别</td>
				<td>
					<input type="text" name="type" value="${ food.type }"/>
				</td>
			</tr>
			<tr>
				<td width="30%">名称</td>
				<td>
					<input type="text" name="name" value="${ food.name }"/>
				</td>
			</tr>
			<tr>
				<td>价格</td>
				<td>
					<input type="text" name="price" value="${ food.price }"/>
				</td>
			</tr>
			<tr>
				<td>库存</td>
				<td>
					<input type="text" name="storage" value="${ food.storage }"/>
				</td>
			</tr>
			<tr>
				<td>订单次数</td>
				<td>
					<input type="text" name="orderNum" value="${ food.orderNum }"/>
				</td>
			</tr>
			<tr>
				<td>退单次数</td>
				<td>
					<input type="text" name="backNum" value="${ food.backNum }"/>
				</td>
			</tr>
			<tr>
				<td>成单次数</td>
				<td>
					<input type="text" name="finishNum" value="${ food.finishNum }"/>
				</td>
			</tr>
			<tr>
				<td>状态（1在售有库存，0无库存，-1停售。）</td>
				<td>
					<input type="text" name="state" value="${ food.state }"/>
				</td>
			</tr>

			<tr>
				<td colspan="2">
					<input type="submit" value="提	交" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>



